package net.jueb.custom.pojo;

import java.io.Serializable;

public class NError implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8395998478518594161L;
	
	


	public byte NErrorCode;
	
	public String ErrorInfo;
	
	public NError(byte nErrorCode, String errorInfo) {
		super();
		NErrorCode = nErrorCode;
		ErrorInfo = errorInfo;
	}
	@Override
	public String toString() {
		return "NError [NErrorCode=" + NErrorCode + ", ErrorInfo=" + ErrorInfo
				+ "]";
	}
	
	public static class NErrorCode
	{
		public static byte Unkonwn_Protocol=0x01;
		public static byte SecondProtocolType_NotFound=0X02;
		public static byte PojoNameLength_NotFound=0X03;
		public static byte PojoName_NotFound=0X04;
		public static byte PojoDataLength_NotFound=0X05;
		public static byte PojoData_NotFound=0X06;
	}
	
}
